<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">
    <title>健康饮食推荐</title>
    <meta name="keywords" content="面向学习型的开源框架，简洁高效，杜绝过渡封装，展现技术本质本质">
    <meta name="description" content="面向学习型的开源框架，简洁高效，杜绝过渡封装，展现技术本质本质">
    <link rel="shortcut icon" href="favicon.ico">
    <link href="/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="/css/plugins/toastr/toastr.min.css" rel="stylesheet">
    <link href="/css/animate.css" rel="stylesheet">
    <link href="/css/style.css?v=4.1.0" rel="stylesheet">
</head>
<body class="gray-bg">
	<div class="wrapper wrapper-content ">
		<div class="col-sm-12">
			<div class="ibox">
				<div class="ibox-body">

					<div class="fixed-table-toolbar" style="padding: 10px;">
						<a type="button" class="btn btn-primary" th:href="@{/dict/toAdd}">
							<i class="fa fa-plus" aria-hidden="true"></i>  添加
						</a>
					</div>

					<table id="exampleTable" data-mobile-responsive="true" class="table table-hover table-bordered table-striped">
						<thead>
					        <tr>
					            <th>ID</th>
					            <th>CodeType</th>
					            <th>Code</th>
					            <th>CodeName</th>
					            <th>Remark</th>
					            <th>操作</th>
					        </tr>
					        </thead>
					        <tbody>
					        <tr  th:each="dict : ${dicts}">
					            <th scope="row" th:text="${dict.id}">1</th>
					            <td th:text="${dict.codeType}">neo</td>
					            <td th:text="${dict.code}">Otto</td>
					            <td th:text="${dict.codeName}">6</td>
					            <td th:text="${dict.remark}">6</td>
					            <!-- <td><a th:href="@{/toEdit(id=${dict.id})}">edit</a></td> -->
					            <td>
					            	<a class="btn btn-primary btn-sm" title="编辑" th:href="@{/dict/toEdit(id=${dict.id})}">编辑</a>
					            	<a class="btn btn-warning btn-sm" title="删除" th:href="@{/dict/delete(id=${dict.id})}">删除</a>
					            </td>
					        </tr>
						</tbody>
					</table>
					
					<!-- 分页页面,设置页面跳转路径 -->
					<script th:inline="javascript"> var type = "toDictionary";  </script>
					<div th:replace="public/page::html" ></div>					
					
				</div>
			</div>
		</div>
	</div>
</body>
</html>